package com.gsafety.wellsfort.common.enums;

public enum CustomerTypeEnum {
    TEENAGERS_CHILDREN(1,"青少年儿童"),
    SOCIAL_PUBLIC(2,"社会公众"),
    INDUSTRY_PERSONNEL(3,"行业从业人员"),
    GOVERNMENT_OFFICIAL(4,"政府部门"),
    RESCUER(5,"专业救援人员");
    public Integer	value;
    public String	label;

    CustomerTypeEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getLable() {
        return label;
    }

    public Integer getValue() {
        return value;
    }

    public static CustomerTypeEnum parseVal(Integer value){
        CustomerTypeEnum[] enums = CustomerTypeEnum.values();
        for(CustomerTypeEnum s : enums){
            if(s.getValue().intValue() == value.intValue()){
                return s;
            }
        }
        return null;
    }
}
